package com.study.service;

import com.study.mapper.AxiosMapper;
import com.study.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;

@Service
public class AxiosServiceImpl implements AxiosService {

    @Autowired
    private AxiosMapper axiosMapper;

    @Override
    public void saveUser(User user) {
        axiosMapper.saveUser(user);
    }

    @Override
    public List<User> findUserList() {
        return axiosMapper.findUserList();
    }

    @Override
    public void updateUser(User user) {
        axiosMapper.updateUser(user);
    }

    @Override
    public void deleteUserById(Integer id) {
        axiosMapper.deleteUserById(id);
    }
}
